function loadlast () {

<?php

$saved_divs = array (
	'div1' => array ( 
		'pos_x' => 50,
		'pos_y' => 100,
		'size_x' => 200,
		'size_y' => 100
	 )
);

foreach ( $saved_divs as $id => $params ) {
	echo "document.getElementById('$id').style.width = {$params['size_x']};\n";
	echo "document.getElementById('$id').style.height = {$params['size_y']};\n";
	echo "document.getElementById('$id').style.left = {$params['pos_x']};\n";
	echo "document.getElementById('$id').style.top = {$params['pos_y']};\n";
	echo "addFrame(document.getElementById('$id'));\n";
}

?>

}

<?php /*
var divs = document.getElementsByTagName('div');
for ( i=0; i<divs.length; i++ ) {
document.write( '[' + divs[i].id + '] ' + divs[i].innerHTML+"<br/>\n");
};
*/ ?>